home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
EDITOR
/
AMAC44.ARJ
/
MIS005.QM
< prev
next >
Wrap
Text File
|
1992-02-17
|
11KB
|
213 lines
* mis005.qm
* Miscellaneous Macros to Make Single Column Macros
* Written By Tom Hogshead
* [ See MISCxx.QM For Use ]
* 2/17/92
* Key Subfile Description
* ===== ========= =================================================
* @(6) Make Single Column Macro of QMAC Output
* @(7) Make Single Column Macro, User Controlled
* @(8) Make Single Column Macro, Automatic
* @(9) Convert Single Column Macro to Wide, User Control
* @(0) Convert Single Column Macro to Wide, Automatic
* @(j) Join Lines with Single Space at Join Point
* @(F9) WordLeft For Use With @7
* @(F10) WordRight For Use With @7
*
* {e:\up\MISC*} Return To MISCxx.QM
* {e:\up\PAUSE*} Return To PAUSExx.QM, Macros to Single Step Macros
*
*-- eoi
* M A C R O S - Some require QEdit v2.15
* ----------------------------------------------------------------------
* @(6) Makes Single Column Macro of QMAC Output TextFile
* ----------------------------------------------------------------------
* This macro will make a single column macro of QMAC output of the file
* being edited. If a macro is not a marked block, all macros in the
* file are made into single column macros.
@6 macrobegin
endline cursorright writeblock "c:$.qm" return "O" backspace begline
DOS "qmacB c:$" return return * Make macfile
DOS "qmacT-n c:$" return return * Make txtfile
editfile "c:$.qm" return quit editfile return
endfile addline "*" cursorright
insertdate inserttime killfile * Date stamp
*
* 98 bytes Fri 09-14-1990 14:06:30
* 103 bytes Fri 10-18-1991 14:56:58 (TH @F1 in MACRxx.QM)
* 95 bytes Thu 11-14-1991 22:42:20 (TH @6, removed currentfilename)
* ┌───────────────────────── QMACB.BAT ──────────────────────────────┐
* │ @echo off │
* │ rem qmacB.bat Sun 09-30-1990 │
* │ cls │
* │ echo Converts %1.QM (text) To %1.MAC (binary) │
* │ if not exist %1.QM goto NOTEXIST │
* │ QMAC %1.MAC %1.QM /B /A- %2 %3 │
* │ goto END │
* │ :NOTEXIST │
* │ echo %1.QM does not exist │
* │ :END │
* └──────────────────────────────────────────────────────────────────┘
* ┌────────────────────────── QMACT-N.BAT ───────────────────────────┐
* │ @echo off │
* │ rem qmacT-n.bat for single column txtfile Sun 09-30-1990 │
* │ cls │
* │ echo Converts %1.MAC (binary) To %1.QM (text) │
* │ if not exist %1.MAC goto NOTEXIST │
* │ QMAC %1.MAC %1.QM /T /A- /W15 %2 %3 │
* │ goto END │
* │ :NOTEXIST │
* │ echo %1.QM does not exist │
* │ :END │
* └──────────────────────────────────────────────────────────────────┘
*
* ----------------------------------------------------------------------
* @(7) Make Single Column Macro, User Controlled
* ----------------------------------------------------------------------
* This macro enables the user to make a single column macro and control
* where lines will be split. To run, place the cursor line on the first
* line of the block, execute the macro, and at the first Pause cursor
* down to the desired end of block and hit <enter>. Alternatively, the
* block may be marked before execution as any type block (open or
* closed).
* At each Pause thereafter, continue pressing <enter> until the last
* desired word on the line has been split, then cursor down to next
* line if not already there and continue pressing <enter>, etc. At
* anytime while macro is executing, cursordown or cursoup, and @F7 or
* @f8 may be used to move to and split wordleft and wordright. The
* macro stops when the cursor reaches the blank line at the end of the
* marked blocked, if any blank line exists in the block, or if Esc is
* pressed three times.
@7 macrobegin
gotoblockend jtrue OK markline gotoblockend jtrue OK Pause markline
OK: addline gotoblockbeg
maketopofscreen
START: begline
WORDR: wordright
TEST: isemptyline jtrue END
markword gotoblockend unmarkblock cursorright isendline jtrue WORDR
setscreenon
Pause
setscreenoff
splitline splitline cursordown gotocolumn "9" return
cursorright joinline cursorleft delrtword jump START
END: unmarkblock delline
*
* 51 bytes Fri 11-15-1991 12:27:09 (TH @7)
*
* ----------------------------------------------------------------------
* @(F9) and @(F10) For Use With @7
* ----------------------------------------------------------------------
@F9 wordleft
@F10 wordright
*
* ----------------------------------------------------------------------
* @(8) Split Macro Into Single Column Macro, Maintain Label Positions
* ----------- Revised 90 bytes Sat 11-16-1991 14:52:56 ---------------
* This macro makes a single column macro from any portion of a macro
* marked as any type block before or during macro execution. To run,
* place the cursor line on the first line of the block. Execute the
* macro. At the Pause, cursor down to the desired end of block and hit
* <enter>. Alternatively, the block may be marked before execution as
* any type block (open or closed). The macro stops when the cursor
* reaches the blank line indicating the end of the marked blocked or if
* a blank line exists in the block.
* This macro attemps to not split words beginning with "j" which are
* assumed to be jtrue, jfalse or jump. Labels following "j" statements
* may be on the same line or the next line and may or may not be
* followed. This macro will not split any line containing an asterisk
* "*" unless the line immediately follows a "j" word. Please be aware
* that the single column macros produced by @8 is not a "perfect"
* single column macro and will probably have to be edited to your
* preferences. If you want macro to make a "perfect" single column
* macro use @6, or one to your preference, use @7. Lines which do not
* get split because of their proximity to 'j' words and/or lines with
* asterisks may be split by running @8 just on these lines a second
* time.
@8 macrobegin
gotoblockend jtrue OK markline gotoblockend jtrue OK Pause markline
OK: addline gotoblockbeg
START: setscreenon setscreenoff begline
WORDR: wordright
MARK: markline Find "*" return "GL" return jfalse TEST cursordown jump MARK
TEST: isemptyline jtrue END markword cursorleft markcolumn Find " j" return
"GLI" return jfalse NOEOL gotoblockend wordright jump MARK * |
* In case line with comments follows "j" word, need jump MARK
NOEOL: markword gotoblockend unmarkblock cursorright isendline jtrue WORDR
splitline splitline cursordown gotocolumn "9" return
cursorright joinline cursorleft delrtword jump START
END: unmarkblock delline
*
* 99 bytes Wed 11-13-1991 13:41:44 (TH @8)
* 99 bytes Thu 11-14-1991 00:53:29 (TH @8, corrected for comments/end)
* 87 bytes Fri 11-15-1991 11:42:13 (TH @8, shorter, faster)
* 90 bytes Sat 11-16-1991 14:52:56 (TH @8, for comments after 'j' words |)
*
* ----------------------------------------------------------------------
* @(9) Convert Single Column Macro to Wide, User Controlled
* ----------------------------------------------------------------------
* This macro enables the user to return a single column macro to a wide
* macro. To run, place the cursor line on the first line of the block,
* execute the macro, and at the first Pause cursor down to the desired
* end of block and hit <enter>. Alternatively, the block may be marked
* before execution as any type block (open or closed).
* At each Pause thereafter, continue pressing <enter> until the desired
* line width is achieved, then cursor down to next line and continuing
* pressing <enter>, etc. The macro stops when the cursor reaches the
* blank line at the end of the marked blocked, if any blank line exists
* in the block or if Esc is pressed three times.
@9 macrobegin
gotoblockend jtrue OK markline gotoblockend jtrue OK Pause markline
OK: addline gotoblockbeg unmarkblock insertline cursordown
maketopofscreen
1: cursordown isemptyline jtrue 2 cursorup endline
cursorright Pause cursorright joinline cursorleft delrtword jump 1
* cursorright cursorright joinline cursorleft delrtword Pause jump 1
2: delline prevpara cursorup delline
*
* 40 bytes Thu 11-14-1991 01:40:35 (TH @9)
* 41 bytes Fri 11-15-1991 12:18:25 (TH @9)
*
* ----------------------------------------------------------------------
* @(0) Convert Single Column Macro to Wide, Automatic
* ----------------------------------------------------------------------
* This macro makes any portion of a macro marked as a block a "wide"
* macro. To run, place the cursor line on the first line of the block,
* execute the macro, and at the Pause, cursor down to the desired end
* of block and hit <enter>. All commands in the marked block are
* formatted to a right margin of 69, including comments so be careful.
* Alternatively, the block may be marked before execution as any type
* block (open or closed).
@0 macrobegin
setrmargin "69" return
gotoblockend jtrue OK markline gotoblockend jtrue OK Pause markline
OK: addline gotoblockbeg unmarkblock insertline cursordown
1: wrappara isemptyline jtrue 2 cursorup
2: delline prevpara cursorup delline
*
* 36 bytes Thu 11-14-1991 01:11:58 (TH @0)
*
* ----------------------------------------------------------------------
* @(j) Join Lines with Single Space at Join Point, by John Goodman
* ----------------------------------------------------------------------
@j macrobegin
endline cursorright cursorright joinline cursorleft delrtword
* 10 bytes Fri 07-26-1991 19:30:39 (JG @j in RFRMxx.QM rfr007.qm)